#include "head.h"

int main(int argc, char const *argv[])
{
    fly();
    const wchar_t *title = L"普通用户菜单";
    const wchar_t *option_1[] = {L"登录", L"注册", L"返回"};
    int flag = 0;
    FlightSystem d;
    U_data f;
    flag = display_menu(title, option_1, 3);
    switch (flag)
    {
    case 1:
        system("clear");
        d = Sys_init();
        f = Sys_log_in(d);
        Sys_menu(d.Flight_list, f);

        break;
    case 2:
        register_user();
        break;

    case 3:
        exit(-1);
        break;
    default:
        break;
    }
    return 0;
}
